package main

import "time"

func main() {

	/*a := 2
	switch a {
	case 1:
		fmt.Println("one")
	case 2:
		fmt.Println("two")
	case 3:
		fmt.Println("three")
	case 4, 5:
		fmt.Println("four or five")
	default:
		fmt.Println("other")
	}

	t := time.Now()
	switch {
	case t.Hour() < 12:
		fmt.Println("It's before noon")
	default:
		fmt.Println("It's after noon")
	}


	*/

	a := 3
	switch a {
	case 0:
		println(0)
	case 1:
		println(1)
	case 2:
		println(2)
	default:
		println("other")
	}

	b := "cj"
	switch b {
	case "1":
		println("1")
	case "cj":
		println("cj")
	default:
		println("other111")
	}

	c := time.Now()
	switch {
	case c.Hour() < 12:
		println("上午")
	case c.Hour() > 12:
		println("下午")
	}

}
